package com.schoolcardinfo.beans;

public class ChangeIdInfo {
	private int cid;//换卡编号
	private String ctime;//换卡时间
	private int studentId;//学号
	private String cname;//姓名
	
	@Override
	public String toString() {
		return "ChangeIdInfo [cid=" + cid + ", ctime=" + ctime + ", studentId=" + studentId + ", cname=" + cname + "]";
	}

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public String getCtime() {
		return ctime;
	}

	public void setCtime(String ctime) {
		this.ctime = ctime;
	}

	public int getStudentId() {
		return studentId;
	}

	public void setStudentId(int studentId) {
		this.studentId = studentId;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public ChangeIdInfo(int cid, String ctime, int studentId, String cname) {
		super();
		this.cid = cid;
		this.ctime = ctime;
		this.studentId = studentId;
		this.cname = cname;
	}

	public ChangeIdInfo() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + cid;
		result = prime * result + ((cname == null) ? 0 : cname.hashCode());
		result = prime * result + ((ctime == null) ? 0 : ctime.hashCode());
		result = prime * result + studentId;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ChangeIdInfo other = (ChangeIdInfo) obj;
		if (cid != other.cid)
			return false;
		if (cname == null) {
			if (other.cname != null)
				return false;
		} else if (!cname.equals(other.cname))
			return false;
		if (ctime == null) {
			if (other.ctime != null)
				return false;
		} else if (!ctime.equals(other.ctime))
			return false;
		if (studentId != other.studentId)
			return false;
		return true;
	}
}
